package cn.b.sky.user.model;

import cn.b.sky.common.model.ImeCommon;

import java.io.Serializable;

/**
 * 
 * <strong>Title : Attachment.java<br></strong>
 * <strong>Package : cn.b.sky.use.model<br></strong>
 * <strong>Description : </strong>附件<br> 
 * <strong>Create on : 2015-11-5 下午01:16:53<br></strong>
 * <p>
 * @author dapeng.li<br>
 * @version <strong>v1.0.0</strong><br>
 * <br>
 * <strong>修改历史:</strong><br>
 * 修改人 | 修改日期 | 修改描述<br>
 * -------------------------------------------<br>
 * <br>
 * <br>
 */
public class Attachment extends ImeCommon implements Serializable {

  /** 
  * @Fields serialVersionUID 
  * @creator     :dapeng.li
  */
  private static final long serialVersionUID = 8340341789552257152L;

  private String attachmentCode;//附件编号

  private String savePath;//存储路径

  private String fileName;//文件名

  private long fileSize;//文件大小（KB）

  private String hashCode;//哈希码

  private long refCount;//引用计数

  public Attachment() {
    // do nothing
  }

  public Attachment(String attachmentCode, String savePath, String fileName, long fileSize, String hashCode,
      long refCount) {
    super();
    this.attachmentCode = attachmentCode;
    this.savePath = savePath;
    this.fileName = fileName;
    this.fileSize = fileSize;
    this.hashCode = hashCode;
    this.refCount = refCount;
  }

  public String getAttachmentCode() {
    return attachmentCode;
  }

  public void setAttachmentCode(String attachmentCode) {
    this.attachmentCode = attachmentCode;
  }

  public String getSavePath() {
    return savePath;
  }

  public void setSavePath(String savePath) {
    this.savePath = savePath;
  }

  public String getFileName() {
    return fileName;
  }

  public void setFileName(String fileName) {
    this.fileName = fileName;
  }

  public long getFileSize() {
    return fileSize;
  }

  public void setFileSize(long fileSize) {
    this.fileSize = fileSize;
  }

  public String getHashCode() {
    return hashCode;
  }

  public void setHashCode(String hashCode) {
    this.hashCode = hashCode;
  }

  public long getRefCount() {
    return refCount;
  }

  public void setRefCount(long refCount) {
    this.refCount = refCount;
  }

}
